#ifndef __MIKI__
#define __MIKI__
#include "T_Engine.h"
#include "T_Scene.h"
#include <vector>
#include "LuaEngine.h"
#include "T_Text.h"

class Game:public T_Engine,public ILuaBind{
public:
	Game(HINSTANCE hInstance,LPCTSTR szWinclass,LPCTSTR szTitle,
		WORD icon,WORD sm_icon,
		int winwidth,int winheight):
	T_Engine(hInstance,szWinclass,szTitle,icon,sm_icon,winwidth,winheight){
		m_luaengine = 0;
	}
	virtual ~Game(){
	}
	
	virtual LuaEngine *GetLuaEngine();
	virtual void GameInit();
	virtual void GameLogic(int gap);
	virtual void GameEnd();
	virtual void GamePaint(HDC hdc);
	virtual void GameKeyAction(int Action=KEY_SYS_NONE);
	virtual void GameMouseAction(int x,int y,int Action);
	virtual void BindModule(lua_State *L);
	virtual void UnbindModule(lua_State *L);
protected:
	LuaEngine *m_luaengine;
};

#endif